<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
        <script src="/static/js/common.js"></script>

</head>

<body>
    
<div id="app" v-cloak>   
        <el-form label-position="right" ref="form" :inline="true" :model="formInline" class="demo-form-inline"
            style="margin-bottom: 15px;">
            <el-row>
                <el-col>
                    <div class="head-tool">
                        <!-- 头部工具栏 -->
                        <el-form-item>
                            <el-button type="primary" @click="onSubmit">{{col.btnSelect}}</el-button>
                        </el-form-item>
                        <btn-export-list url="xxxx" text="" :forminline="this.formInline"></btn-export-list>
                    </div>
                </el-col>
            </el-row>
            <el-row>
                <el-col :xs="6" :sm="6" :md="6" :lg="4" :xl="4">
                    <div class="elst-select-mini">
                        <el-form-item>
                            <el-input v-model="formInline.model.name" :placeholder="user.name">
                                <template slot="prepend">
                                    {{user.name+mark.m}}
                                </template>
                            </el-input>
                        </el-form-item>
                    </div>
                </el-col>
            </el-row>
        </el-form>
        <el-table ref="table" :data="ListItem.tableData" :row-key="getRowKeys" :height="ListItem.tableHeight" border
            @selection-change="handleSelectionChange" row-style="height:10px" style="width: 100%;">
            <el-table-column type="selection" style="
    padding-top: 0px;
    padding-bottom: 0px;
" align="center" width="55" :reserve-selection="true">
            </el-table-column>
			<el-table-column type="index" :label="col.SequenceNumber" :index="indexMethod" width="50"
                        show-overflow-tooltip="true"></el-table-column>
            <el-table-column prop="dutyName" :label="DutiesAndResponsibilities.dutyName" width="210">
            </el-table-column>
            <el-table-column prop="dutyMine" :label="DutiesAndResponsibilities.dutyMine" width="200">
            </el-table-column>
            <el-table-column prop="situation" :label="DutiesAndResponsibilities.situation" width="100">
            </el-table-column>
            <el-table-column prop="date" :label="DutiesAndResponsibilities.date" width="100">
            </el-table-column>
            <el-table-column prop="evaluation" :label="DutiesAndResponsibilities.evaluation" width="100">
            </el-table-column>
            <el-table-column prop="score" :label="DutiesAndResponsibilities.score" width="100">
            </el-table-column>
            <el-table-column prop="name" :label="user.name" width="100">
            </el-table-column>
            <el-table-column prop="remarks" :label="user.remarks">
            </el-table-column>
        </el-table>
        <el-row type="flex" justify="end">
            <el-pagination ref="page" @size-change="handleSizeChange" @current-change="handleCurrentChange"
                :current-page="ListItem.currentPage" :page-sizes="ListItem.pagesizes" :page-size="ListItem.pagesize"
                :layout="ListItem.layout" :total="ListItem.total">
            </el-pagination>
        </el-row>
    </div>
    <script type="text/javascript">
        var app = new Vue({
            el: '#app',
            data: {
                //表单内容
                ListItem: ListItem,
                //获取下拉菜单situation
                situation: [],
                formInline: {
                    model: { name: '' },
                    offset: 0,
                    limit: 10
                }
            },
            mounted: function () {

                console.log(getDicDataArray(["01", "02", "03", "04"]))

                //初始化数据
                this.GetPageData(1);
                //列表高度自适应
                tablehigh(this);
            },
            methods: {
                //解決edge下select bug
                visibleChange: function (isVisible) {
                    visibleChange(isVisible)
                },
				indexMethod: function (index) {
                    return (this.ListItem.currentPage - 1) * this.ListItem.pagesize + index + 1;
                },
                //列表选择触发
                handleSelectionChange: function (val) { handleSelectionChange(this, val); },
                //Dialog展示
                UserInput: function (val, id) {DialogShow(this, val, "DutiesAndResponsibilitiesInput.html", id); },
                //获取分页数据
                GetPageData: function (currentIndex) { GetPageData(this, currentIndex, '/api/DutiesAndResponsibilities/GetList') },
                //查询方法
                onSubmit: function () { onSubmit(this); },
                //pagesize改变 触发方法
                handleSizeChange: function (val) { handleSizeChange(this, val); },
                //跳页触发方法
                handleCurrentChange: function (val) { handleCurrentChange(this, val); },
                //获取下拉菜单数据
                getDropDown: function () {
                }

            }
        });
    </script>
</body>

</html>